package com.jic.order.model.entity;

import com.jic.common.base.vo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.math.BigDecimal;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@ApiModel(description = " m_order_goods ")
public class MOrderGoods extends BaseEntity {
	private static final long serialVersionUID = 1L;
    @ApiModelProperty(notes = "主键ID")
    private Long id;

    @ApiModelProperty(notes = "订单号")
    private String orderNo;

    @ApiModelProperty(notes = "商品id")
    private Long goodsId;

    @ApiModelProperty(notes = "商品名称")
    private String goodsName;

    @ApiModelProperty(notes = "商品图片地址，用于用户订单列表展示")
    private String goodsImgUrl;

    @ApiModelProperty(notes = "商品类型，无仓、普通")
    private Integer goodsType;

    @ApiModelProperty(notes = "商品数量")
    private Integer goodsNum;

    @ApiModelProperty(notes = "商品数量，已转交货单数量")
    private Integer alreadyTransferDeliverNum;

    @ApiModelProperty(notes = "商品数量，待转交货单数量")
    private Integer waitTransferDeliverNum;

    @ApiModelProperty(notes = "销售单价，对应销售总金额")
    private BigDecimal saleUnitPrice;

    @ApiModelProperty(notes = "优惠单价，对应优惠总金额")
    private BigDecimal discountUnitPrice;

    @ApiModelProperty(notes = "购买单价，对应购买总金额")
    private BigDecimal buyUnitPrice;

    @ApiModelProperty(notes = "物流平摊单价")
    private BigDecimal expressUnitFee;

    @ApiModelProperty(notes = "实付总金额，实付总金额=（购买单价+物流平摊单价）*数量")
    private BigDecimal actualPayTotalAmount;

    @ApiModelProperty(notes = "备注")
    private String mark;

    @ApiModelProperty(notes = "版本号")
    private Long version;

    @ApiModelProperty(notes = "1.开团 2.参团")
    private Integer groupType;

    @ApiModelProperty(notes = "活动ID")
    private String promotionId;

    @ApiModelProperty(notes = "活动类型 类型:1单一促销,2满量促销,3满额促销,4秒杀,5赠送类促销,6组合促销7.单品X件优惠,8换购,9预售,11优惠券,20拼团")
    private Integer promotionType;

    @ApiModelProperty(notes = "创建人姓名")
    private String creatorName;

    @ApiModelProperty(notes = "更新人姓名")
    private String updaterName;

    @ApiModelProperty(notes = "分销人id(member_user用户id)")
    private Long distributorId;

    @ApiModelProperty(notes = "购买数量")
    private Long quantity;

    @ApiModelProperty(notes = "已发货数量")
    private Long quantityShipped;

    @ApiModelProperty(notes = "商品会员折扣")
    private BigDecimal discountCommodityPrice;

    @ApiModelProperty(notes = "商品单价")
    private BigDecimal transferDeliverPrice;

    @ApiModelProperty(notes = "积分单价")
    private BigDecimal integralPrice;

    @ApiModelProperty(notes = "会员折扣优惠")
    private BigDecimal memberDiscount;

    @ApiModelProperty(notes = "拼团")
    private BigDecimal groupBooking;

    @ApiModelProperty(notes = "优惠券")
    private BigDecimal discountCoupon;

    @ApiModelProperty(notes = "卡券")
    private BigDecimal coupon;

    @ApiModelProperty(notes = "实付总积分=(积分单价*数量)")
    private BigDecimal payCredits;

}
